<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>制作简易的购物车页面</title>
    <link type="text/css" rel="stylesheet" href="css/cartStyle.css" />
</head>
<body>

<div class="content">
    <div class="logo">
        <img src="images/logo.jpg"><span onclick="close_plan();">关闭</span>
    </div>
    <div class="cartList">
        <ul>
            <li onclick="collection();">移入收藏</li>
            <li onclick="del();">删除</li>
            <li onclick="collection();">移入收藏</li>
            <li onclick="del();">删除</li>
            <li><span onclick="accounts();">结 算</span></li>
        </ul>
    </div>
</div>
<script>
    function close_plan(){
        window.close();
    }


    function close_plan(){
        var flag = confirm("移入收藏后，将不再购物车显示,是否继续操作,);
        if(flag == true)(
            alert("移入收藏成功！！！");
        )else (

        )
    }

    function accounts(){
        //  \r\n 换行符
        var flag = confirm("您此次购买的商品信息如下\r\n11111111111\r\n222222");
        if(flag == true){
            alert("!!!");
        } else {

        }
    }
</script>
</body>
</html>